﻿using UnityEngine;

namespace Core
{
    public class UIWidget3D : UIWidget
    {
        public Canvas Canvas { get; private set; }
        public override void Awake(GameObject go)
        {
            base.Awake(go);

            Canvas = go.GetComponent<Canvas>();
            Canvas.worldCamera = Camera.main;
            Canvas.sortingOrder = 1;
        }
    }
}
